package cn.haixiang.controller;


import cn.haixiang.domain.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("{id}")
    public User getUser(@PathVariable("id") Long id){
        return  new User(id,"11","就是这个味道");

    }
}
